package com.alibaba.citrus.ots.platform.enhance.api;

import com.alibaba.citrus.ots.platform.enhance.dto.api.request.*;
import com.alibaba.citrus.ots.platform.enhance.sdo.CompanySDO;
import com.alibaba.cz.base.tool.page.PageResult;
import com.alibaba.cz.base.tool.result.Result;
import com.alibaba.lattice2.epoch.meshflow.model.annotation.MeshFlowService;

import java.util.List;

/**
 * @author zhoubc
 * @description: TODO
 * @date 2021/9/3 12:20
 */
@MeshFlowService(apps = {"bc_ots"}, name = "companyQueryService")
public interface CompanyQueryService {

    /**
     * 根据id查询公司
     * @param request
     * @return
     */
    Result<CompanySDO> getCompany(IdQueryRequest request);

    /**
     * 分页查询公司
     * @param request
     * @return
     */
    Result<PageResult<List<CompanySDO>>> pageQueryCompanyList(QueryCompanyRequest request);

}
